package com.ocom.srvpamh.feignclient;

import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.request.srvpaccess.UpdateAvatarRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.recode.DoorRecodeVo;
import com.ocom.common.vo.srvpaccess.YctUsefulInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mjrecode")
public interface MjRecodeFeignService {

//    @PostMapping(MjRecodeUrl.URL_YkmRecord)
//    Result saveYkmRecord(@RequestBody YctUsefulInfo  yctUsefulInfo);

    @PostMapping(MjRecodeUrl.URL_Record)
    Result saveAccessRecord(@RequestBody DoorRecodeVo recodeVo);

    @PostMapping(value = MjRecodeUrl.URLP_updateAvatar)
    public Result updateAvatar(@RequestBody UpdateAvatarRequest request);
}
